Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KAFKA-18379: Enforce resigned cannot transition to any other state in same epoch #19236

Open
wants to merge 11 commits into
base: trunk
Choose a base branch
from

Conversation

frankvicky
Copy link
Collaborator

@frankvicky frankvicky commented Mar 19, 2025

JIRA: KAFKA-18379

For further details, please refer to KIP-996 and #18240 (comment).

In short, this PR adds a check for the transition from the resigned state to other states to prevent a resigned leader from accidentally becoming its own follower in the same epoch, which would create an invalid circular reference.

… same epoch

JIRA: KAFKA-18379

For further details, please refer to
[KIP-996](https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=272927537#KIP996:PreVote-ResignedStatechanges)
and apache#18240 (comment).

In short, this PR adds a check for the transition from the resigned
state to other states to prevent a resigned leader from accidentally
becoming its own follower in the same epoch, which would create an
invalid circular reference.
@github-actions github-actions bot added triage PRs from the community kraft small Small PRs labels Mar 19, 2025
Copy link

A label of 'needs-attention' was automatically added to this PR in order to raise the
attention of the committers. Once this issue has been triaged, the triage label
should be removed to prevent this automation from happening again.

Copy link

A label of 'needs-attention' was automatically added to this PR in order to raise the
attention of the committers. Once this issue has been triaged, the triage label
should be removed to prevent this automation from happening again.

Copy link

A label of 'needs-attention' was automatically added to this PR in order to raise the
attention of the committers. Once this issue has been triaged, the triage label
should be removed to prevent this automation from happening again.

Copy link

github-actions bot commented Apr 3, 2025

A label of 'needs-attention' was automatically added to this PR in order to raise the
attention of the committers. Once this issue has been triaged, the triage label
should be removed to prevent this automation from happening again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants